package com.ruoyi.project.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.system.domain.vo.CommandQuery;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class DtQuery {

    private static final long serialVersionUID = 1L;

    @Excel(name = "进件ID")
    private Integer queryId;

    @Excel(name = "用户ID")
    private Long userId;

    @NotBlank(message = "姓名不能为空")
    @Excel(name = "姓名")
    private String name;

    @Excel(name = "身份证")
    @NotBlank(message = "身份证不能为空")
    private String cardNo;

    @Excel(name = "手机号")
    private String tel;

    @Excel(name = "虚拟手机号")
    private String virtualTel;

    @Excel(name = "是否进件")
    private String isIncome;

    @Excel(name = "更多关键字")
    private String moreKeyword;

    @Excel(name = "审核状态")
    private String process;

    private String authCode;

    private String qt;

    private String delFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private String[] items;

    public DtQuery() {
    }

    public DtQuery(CommandQuery cq) {
        this.name = cq.getName();
        this.cardNo = cq.getCardNo();
        this.tel = cq.getTel();
    }
}
